<volist name="data.list" id="message">
    <div class="agent-item am-g">
        <div class="am-u-sm-9 am-padding-0">
            <img src="__PUBLIC__/assets/i/msg.png" width="32" height="32" class="am-round" alt=""><span class="name">{$message.title}</span>
        </div>
        <div class="am-u-sm-3 am-text-right" style="margin-top: -5px" id="btn_div_{$message.id}">
            <switch name="message.status">
                <case value="0">
                    <a href="#"><span class="btn yes_btn" data-password="{$message.password}" data-room_id="{$message.room_id}" data-id="{$message.id}" data-type="1" onclick="process(this)" id="yes1" >接受</span></a>
                    <a href="#"><span class="btn no_btn" id="no1" data-password="{$message.password}" data-room_id="{$message.room_id}" data-id="{$message.id}" data-type="2" onclick="process(this)">拒绝</span></a>
                    <span class="state" id="state1"></span>
                </case>
                <case value="1">
                    <span class="btn yes_btn" data-password="{$message.password}" data-room_id="{$message.room_id}" data-id="{$message.id}" onclick="goToRoom(this)">已接受</span>
                </case>
                <case value="2">
                    <span class="btn no_btn">已拒绝</span>
                </case>
            </switch>

        </div>
    </div>
</volist>
<input type="hidden" id="totalpage" value="{$data.page.totalpage}">